package com.xc.smart.utlis;

import java.util.Calendar;
import java.util.Date;

/**
 * @author mtl
 * 2021/6/8
 */
public class DateUtilss {
    /**
     * 获取当前日期指定天数之后的日期.
     * @param num   相隔天数
     * @return Date 日期
     * @since 1.0
     */
    public static Date nextDay(int num) {
        Calendar curr = Calendar.getInstance();
        curr.set(Calendar.DAY_OF_MONTH, curr.get(Calendar.DAY_OF_MONTH) + num);
        return curr.getTime();
    }

}
